package list;

import java.util.List;

/**
 * @ClassName: ListTest
 * @Author: wangyusong
 * @Date: 2020-10-06 23:03
 * @Desciprion: 表结构测试类
 * @Version:
 */
public class ListTest {

    public static void main(String[] args) {
        ListNode l1 = new ListNode() {
            @Override
            public void initList() {

            }

            @Override
            public int length(List[] list) {
                return 0;
            }

            @Override
            public int locateElem(List[] list, Object element) {
                return 0;
            }

            @Override
            public Object getElem(List[] list, int i) {
                return null;
            }

            @Override
            public boolean listInsert(List[] list, int i, Object e) {
                return false;
            }

            @Override
            public Object listDelte(List[] list, int i, Object e) {
                return null;
            }

            @Override
            public boolean empty(List[] list) {
                return false;
            }
        };
        l1.initList(2);
        System.out.println("init list:"+l1);
        System.out.println("after insert list1:"+" "+l1+"result:"+l1.listInsert(l1.getList(),1,3));
        System.out.println("after insert list2:"+" "+l1+"result:"+l1.listInsert(l1.getList(),2,4));
        System.out.println("after insert list3:"+" "+l1+"result:"+l1.listInsert(l1.getList(),3,5));




    }
}
